import request from '../utils/request'


/**
 * 分页查询房源列表
 *  data = {area:'',subway:'', rentType:'', price:'', more:null}
 * 默认第一次查第一页，20条的数据
 */
export const getHouseList = ({cityId, data, start = 1, end = 20}) => {
  return request({
    url: 'houses',
    params: {
      cityId,
      start,
      end,
      ...data
    }
  })
}